15 - In-line skates. 10 - Scooters. 12 - Skateboards.
5 have both skates and scooter: 15-5=10, 10-5=5.
10 - Skates. 5 - Scooters. 12 - Skateboards.
3 have both a scooter and skateboard: 5-3=2, 12-3=9.
10 - Skates. 2 - Scooters. 9 - Skateboards.
2 have skateboard and skates: 10-2=8, 9-2= 7.
Therefore, 8 students only have in-line skates and 7 have only skateboards. Hope this helped!