Three teachers were discussing how long they had been teaching.
Alex and Billie had been teaching for a total of 36 years.
Charlie and Billie had been teaching for a total of 22 years.
Charlie and Alex had been teaching for a total of 28 years.
How long had each been teaching?