How does the ekf algorithm work when there have two data

My graduation thesis is about EKF algorithm in AUV . I was learning code in autopilot\libraries\AP_NavEKF\Models. I found it use IMU data as the observation , what if I have another data like underwater GPS data ,how does the code use two data ?