COMC 2019 A Problem 4

The equations |x|^{2}-3|x|+2=0 and x^{4}-a x^{2}+4=0 have the same roots. Determine the value of a.