M/N P/Q M
N
P
Q
=
A
(you can use "A" as one or both inputs)
examples