Like は and も, the possessive particle の can also append itself to other particles to help modify nouns.

友達ともだちへ 手紙てがみを おくります。
To send a letter to a friend.
友達ともだちの 手紙てがみ
A friend’s letter.
友達ともだちへの 手紙てがみ
A letter to a friend.

Note that にの is not a valid combination. We must use の if we want to combine the directional particle with へ!

友達ともだちから 手紙てがみを もらいます。
To receive a letter from a friend.
友達ともだちからの 手紙てがみ
A letter from a friend.
先生せんせいと 会話かいわを します。
To have a conversation with a teacher.
先生せんせいとの 会話かいわ
A conversation with a teacher.
電車でんしゃで 通勤つうきんします。
To commute by train.
電車でんしゃでの 通勤つうきん
A commute by train.
東京とうきょうから 京都きょうとまでの 距離きょりは およそ380キロメートルです。
The distance from Tokyo to Kyoto is about 380 kilometres.

In writing you may occasionally see へと used in combination but this does not change the meaning or grammatical usage. This will not come on the N5 or N4, but you may see it later.

日本にほんは、20世紀にじゅうせいきに 産業社会さんぎょうしゃかいから 技術社会ぎじゅつしゃかいへと かわりました。
During the 20th century Japan moved from an industrial society to a technological one.
You May Also Like

Despite: のに

JLPT N4. Core grammar used in both writing and conversation. The particle のに is used to express “despite”.…

If I Only Had

JLPT N3. Used in both writing and conversation. さえ is a versatile particle that is used most commonly…

Covered in Something

When we want to say that something is covered in or full of something else (e.g. “the bookshelf…

Essential Conjunctions: But (が)

We form a “but” in Japanese by appending the が particle to the end of the clause. 旅行りょこうに行いきたいですが、休やすみが取とれません。…