Problème d'algèbre

Je suis tombé sur ce problème sur le site "art of problem solving". Je l'ai bien aimé alors le voici: