#*-1g2g3g3m4g4m5g5m6g6m7g7m
#-1m2m
#-
#-

#1 move (1 move total)
#-3g3m4g4m5g5m6g6m7g7m
#*-1g1m2g2m
#-
#-

#2 moves (3 moves total)
#-3g3m4g4m5g5m6g6m7g7m
#-2m2g
#-
#*-1m1g

#From here. 6 moves per 1st floor item (10 items) and 4 moves per 2nd floor item
#3+6*6+4*2 = 
#
#

puts(3+10*6+4*2)
