Bonjour,
Il faut faire une équation.
On sait que :
[tex]AB = \sqrt{\left(x_B-x_A\right)^2+\left(y_B-y_A\right)^2}\\
7 = \sqrt{\left(2-\left(-5\right)\right)^2 +\left(y-2\right)^2}\\
49 = 7^2 + \left(y-2\right)^2\\
\left(y-2\right)^2 = 0\\
y-2 = 0\\
y = 2[/tex]
Si tu as des questions, n'hésite pas à les ajouter en commentaire.