My eyesight isn't so good, so I simply focused on the colors of the flowers. So, modulo everything but colors, we have: Maxima 5.28.0-2 http://maxima.sourceforge.net using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (a.k.a. GCL) Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) r+r+r=60; (%o1) 3 r = 60 (%i2) r+b+b=30; (%o2) r + 2 b = 30 (%i3) b-y=3; (%o3) b - y = 3 (%i4) solve([%o1,%o2,%o3],[r,b,y]); (%o4) [[r = 20, b = 5, y = 2]] (%i5) y+r*b; (%o5) y + b r (%i6) %,r=20,b=5,y=2; (%o6) 102 (%i7)