Find the tangent for angle A

12^2+b^2=40^2
144+b^2= 1600
b^2 =1456
√b2= √1456
b = 38.2
tan = 12/38.2
Or .31