In order to attempt a solution, you need to understand how the equation λ=4L/n relates to closed-end air pipes. Let's take a crack at that.
The gist of it is that since air can only move at the open end of a closed-end pipe, 1 end of a closed-pipe must always be a node while the other end (the open end) must always be an antinode, if the pipe is to resonate. For that to be true, the length of the pipe should be a length L such that L covers either 1/4 of a wavelength (since 1/4 of a wavelength is a node and then a crest/trough), 3/4 of a wavelength (since 3/4 of a wave will, once again, start at a node and end at a crest/trough), 5/4 of a wavelength (again... the wave starts at a node at the closed end and goes to a crest/trough at the open end), and so on as long as L equals an odd number of quarter-wavelengths (hopefully you understand why by this point).
So let's take a look at your problem again. You've been given 3 different lengths of a pipe, 1.12m, 0.67m, and 0.22m, and the frequency 400 Hz, and most importantly the information that the antinode of the pipe actually extends beyond the full length of the pipe. This means that L (defined as length from the node of the closed pipe to the antinode) won't just be the length of the physical pipe (which you are given); L will be the length of the physical pipe plus some constant, which we'll call x. So now we have 3 lengths L:
L1=1.12+x
L2=0.67+x
L3=0.22+x
Well that's all fine and dandy, but why do we have three lengths L again? As we covered above, L can equal any odd number of quarter-wavelengths for the pipe to resonate. So we can safely assume that one L must be 1-quarter wavelength, another must be 3-quarter wavelengths, and another must be 5-quarter wavelengths. But how to decide which ones?
Go back to λ=4L/n. Each 4L/n must equal a constant λ. L1=1.12+x is greater than any of the other given lengths L, so in order for it to be equal to the same thing as the other things it must be divided by the greatest n, which is 5, meaning that L1 is equal to 5-quarter wavelengths. Following that we get L1 has n=5, L2 has n=3, and L3 has n=1.
Now we can solve for x, since we know n for each L. Since 4L/n for all pairs of L and n must equal each other, let's choose 2 pairs of L and n and set them equal to each other:
4L1/n1=4L3/n3
4(1.12+x)/5=4(0.22+x)/1 Some simple algebra, and you get...
x≈0.005m
Now we have our x, which, in case you forgot, is the length outside of the physical pipe that the antinode is at. You can then plug that into any L, and plug that L into λ=4L/n to get wavelength λ. After that you put that into v=fλ and you can solve for the speed of sound in the pipe.
It really isn't nearly as long or complicated as this whole explanation looks. I promise.