Answer:
The image is given below as
From the image above,
We have the given values as

Step 1:
To figure out the value of a, we will use the trigonometric ratio below

Hence,
The value of a is

Step 2:
To calculate the value of b, we will us ethe trigonometric ratio below

Hence,
The value of b is
