Which Do You Think Is Better?
(A)私は、コーヒーを、廊下に設置した自動販売機で買った。
(B)私は、コーヒーを、廊下に設置された自動販売機で買った。
廊下:(ろうか)
自動販売機:(じどうはんばいき)
Actually, they are right, but there's nuance of different between two phrases.
(A) means you installed the vending machine.
(B) means someone else installed the vending machine.
Be careful with ~した and ~された.
The meanings are totally different.