Hey guys

The sides of triangle ABC are divided into segments of lengths a, b and x by the inscribed circle of centre O and radius r as shown. Find x in terms of a, b and r.

The first part of the answer by the teacher is as shown:

Let and

Therefore,

So

….

Could someone please explain to me how ? For some reason, all I seem to be able to get is .

Thanx.