Try these steps

  1. Select the Mac from the tablet app.
  2. Compare the six-digit code shown on each device and approve only when they match.
  3. If the request times out or was cancelled, start the connection again from the tablet.

What to check

Both devices show an approved connection and the extended display opens.