import math


def positions(pos_angle, pos_dist):
    """
    Converts target position from course and distance to
    relative coordinates X and Y.
    :param pos_angle: course angle for target, degrees
    :param pos_dist: distance to target, nautical miles
    :return: relative coords X and Y
    """
    return round(pos_dist * math.cos(math.radians(pos_angle)), 2), \
           round(pos_dist * math.sin(math.radians(pos_angle)), 2)