Put your garbage in the box two boxes in front of the red one.
You can put your garbage in the box two boxes behind the red one.
この場合、次のような言い方ができますよ。
ーPut your garbage in the box two boxes in front of the red one.
「赤い箱の2つ前の箱にゴミを入れて」
two boxes in front of the red one で「赤い箱の2つ前の箱」
ーYou can put your garbage in the box two boxes behind the red one.
「赤い箱の2つ後ろの箱にゴミを入れて」
two boxes behind the red one で「赤い箱の2つ後ろの箱」
ご参考まで!