3sinA + 5cosA = 5
on squaring both side
we get,
9sin²A + 25cos²A + 30sinAcosA = 25
= 9(1 - cos²A) + 25(1 - sin²A) + 30sinAcosA = 25
= 9 - 9cos²A + 25 - 25sin²A + 30sinAcosA = 25
= 9 + 25 - 25 = 9cos²A + 25sin²A - 30sinAcosA
= (3cosA) + (5sinA) - 2×3×5sinAcosA = 9
= (3cosA - 5sinA)² = 9
= 3cosA - 5sinA = +-3