The trig ratios can be remembered as SOH, CAH, TOA
For the angle B, the adjacent arm of the triangle has a length 19 and the hypoteneuse has a length 27. These can be used directly to get the cosine ratio. To find the other two ratios you need the length of the arm opposite to B. Can you think of a formula that allows you to find this length?