D=(a1*b2)-(a2*b1); just search in the net about crammers rule... its easy... if you want the whole program just tell me...
Separate names with a comma.