Independently corrected construction; do not copy the supplied drawing, which puts the right angle at B.
First join the labelled grid points A and B if the segment is absent from the scan. AB is horizontal and spans 5 grid spaces. To make ∠BAE = 90°, AE must be perpendicular to AB at A, so E must lie on the vertical grid line through A, not the one through B.
Count 5 grid spaces straight down from A and label that grid point E. Join A to E and B to E. Keep AB as the third side. Choosing E below AB places the triangle on the opposite side of AB from trapezium ABCD, so the interiors do not overlap.
Check that AB and AE are each 5 grid spaces long, that the right angle is at A, and that only side AB is shared with the trapezium.