A scale balanced with 1 blue x-block and 20 green blocks on the left side and 40 green blocks on the right side. A student bumped into the scale and knocked some blocks off so that only 1 blue x-block and 3 green blocks remained on the left side. How many blocks do you need to remove from the right side to make the scale balance?