For what value of x is the figure a rectangle?
They must be equal, so
7x+8=2x+23
5x=15
x=$\boxed{5}$
Sparkling Water 2, it's actually 3 but your method is correct. Just a simple mistake, 15/5 = 3, not 5.
x = 3