An easy way is to pick up an adapter harness and wire it to aftermarket radio. Such as this
https://www.crutchfield.com/p_120701...s.html?tp=2977 Will plug right intp factory harness. Should have instructions showing what each wire function is, if wires are not marked on new radio best bet would be to find install instructions.