Answer:
20 is my answer and the question is somehow confusing
for 2a, use the theorems of geometry and such to look at the area of the square as 16 squares total, then use the lengths and Sim/cos rule for the triangular area, then subtract and you have you shaded area.
in 536 the value is ones
in 563 the value is tens