subtract s from q, subtract the result from r, then double what you have
Subtract s from q:
q - s
Subtract the result from r:
r - (q - s)
Then double what you have:
2(r - (q - s))
Subtract s from q:
q - s
Subtract the result from r:
r - (q - s)
Then double what you have:
2(r - (q - s))