Well, barre chords are typically found in
two variations... the E shape
It is called E shape because it is just
The E chord moved up to whatever fret
it at...in this case fret 5 on the E string, or A.
Then there is the A shape barre chord
Of course, this is just an A slid up to the fifth
Now you know Amaj and Dmaj in a different place
practice switching between them.