Complex sentence: Guijuelo won their home leg 1--0 and lost away 2--1 for 2--2 on aggregate, and the tie was broken by the away goals rule.
Split into simpler sentences: Guijuelo won their home leg 1--0 and losing away 2--1 for (2--2 on aggregate). The tie was broken by the away goals rule.