Nice one Heureka, 
I didn't even realise that I was being presented with 2 equations to solve simultaneously! 
I didn't understand WHAT the question was. Perhaps you could present it a little better next time anonymous.
Heureka may not be around to interprete! 
Anyway, that is a really nice solution Heureka. 