A straight line makes an angle of 30° with the positive x-axis and cuts the…