Angle a is directly opposite from a 40 degree angle, so a=40. Then we can find b since the sum of the angles of all triangles is 180 and there is a right angle in there along with angle a:
Last, to find c we just notice that it is supplementary with an angle of measure 65, so: