(x*x + y*y) / (x+y)
where ...
x
$s1
y
Leave the result of the expression in $a0
$a0
Start by writing a simplified C version.