help me with my maths question that I am stuck for hours.

Answer:
a = 2 cm
b = 5 cm
Step-by-step explanation:
Let us divide the figure into 2 parts,
a square ABCD, where
AB = 5 cm (given)
BC = 4 + 1 = 5 cm
CD = 7 - a cm
DA = b cm
and rectangle PQRS,
where PQ = a = RS
QR = SP
Now, in ABCD,
AB = CD (because it's a square, all sides are equal)
》》5 = 7 - a
Therefore, a = 7 - 5 = 2 cm
Now, DA = CD (it's a square)
b = 7 - a = 7 - 2 = 5 cm
Therefore, b = 5 cm
-------------------
Hope it helps
xoxo