Need help in forming equations for these two apparently simple scenarios!

Printable View