From the second formula, ○=□-7=6+☆-7=☆- 1.
Substitute the last formula above into the third formula to get ☆ =17-☆ =17-(☆-1) =18-☆.
So ☆=9 can also be calculated as ☆ = 8, □= 15.