Your coordinate system has north (bearing 0°) straight up. Positive degrees are clockwise. The original position of the ship should be thought of as the origin.
The ship sails 15 km along a course 44° East of North. That is the first side of the triangle.
The second side is from the starting point to the buoy. It is 134° clockwise from north.
The angle between the first two sides is (134 - 44) = 90°.
The third side is from where the ship sailed to the buoy. The bearing from this position to the buoy is 168° clockwise of north. The angle between the first and second sides is the supplement of this plus the bearing of the first side (alternate interior angles)
(180 - 168) + 44 = 12 + 44 = 56°
The angle between the second and third sides is therefore
180 - 90 - 56 = 34°.
Now find the length of the second and third sides by the law of sines.
15/sin34° = x/sin56° = y/sin90°
x = 15(sin56°/sin34°) ≈ 22.238415 km
y = 15(sin90°/sin34°) = 15/sin34° ≈ 26.824375 km