Hello, thank you in advance

for example:

code: reg price weight mpg
price Coef. Std. Err. t P>t [95% Conf. Interval]
weight 1.746559 .6413538 2.72 0.008 .467736 3.025382
mpg -49.51222 86.15604 -0.57 0.567 -221.3025 122.278
_cons 1946.069 3597.05 0.54 0.590 -5226.245 9118.382

test weight=mpg
( 1) weight - mpg = 0
F( 1, 71) = 0.36
Prob > F = 0.5514


I wonder whether someone knows the formula of this F test?

Thank you so much!