Wiring Light Fixture with 2 Sockets into Junction Box with 2 White, 2 Black, and 1 Red Wire
Take the two black wires in the box and wire nut them together. Take the two white wires from the box and twist them together and then connect them to the two white wires from the fixture with a wire nut. Take the red wire in the box and connect it to the two black wires from the fixture with a wire nut. Connect the ground wires together. Turn off the power before doing any of this.