Help me :( please help me

Answer:
22.84, 5.83
Step-by-step explanation:
Pythagoras theorem states that: a^2+b^2=c^2
So, for red triangle, it will be: 9^2+21^2=b^2
81+441=b^2
522=b^2
square root of 522=b
22.84=b
For purple one,
3^2+5^2=a^2
9+25=a^2
34=a^2
square root of 34=a
5.83=a