His profits were $40 because 20 / .5 = <<20/.5=40>>40
He made $300 selling sunglasses because 10 x 30 = <<10*30=300>>300
His costs for the sunglasses were $260 because 300 - 40 = <<300-40=260>>260
The sunglasses cost him $26 each because 260 / 10 = <<260/10=26>>26
#### 26