There are two blocks, A and B. One medium black square and one medium yellow square are in block A. The medium black square is to the right of and above the medium yellow square. Block B is above block A. It contains one medium blue square, a small blue triangle and one medium yellow circle. To the left of a medium black triangle there is the medium blue square. The medium black triangle is touching the right edge of this block. This block also has a small black triangle. The small blue triangle is near to, to the left of and below the medium yellow circle. To the left of and below the small blue triangle is the medium blue square. Below the small blue triangle there is the medium black triangle. The small black triangle is touching the bottom edge of this block.
What is above the medium black square? a medium object that is touching the right edge of a block or a shape that is touching the bottom edge of a block?
medium object that is touching the right edge of  a block  shape that is touching the bottom edge of a block  both of them none of them