A:Answer Hey there!
Unfortunately, the Apple Magic Keyboard for 11-inch iPad Pro (1st, 2nd, or 3rd Generation) and iPad Air (4th, or 5th Generation) does not work for the iPad 10th gen.
The iPad 10th gen has a different design than the iPad Air 4th and 5th gen, so the Magic Keyboard is not compatible. If you're looking for a keyboard for your iPad 10th gen, Apple does offer a Magic Keyboard Folio that is specifically designed for that device.
I hope this helps! Let me know if you have any other questions. :)