How to properly save player position and load ?

I am a Unity rookie.
What is wrong with my writing?
I can’t put in the script
I want him to correctly capture the information in the game archive.

To save and load
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Test : MonoBehaviour
{
public SaveGame sav = new SaveGame();

public void DoSave()
{
sav = sav.GetComponent();
PlayerPrefs.SetFloat(“PlayerX”, sav.transform.position.x);
PlayerPrefs.SetFloat(“PlayerY”, sav.transform.position.y);
}
public void DoLoad()
{
transform.position = new Vector2(PlayerPrefs.GetFloat(“PlayerX”), PlayerPrefs.GetFloat(“PlayerY”));
}
}

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SaveGame : MonoBehaviour
{
public float PosX = 0f;
public float PosY = 0f;
}

I’m not sure that continually posting new threads with the same topic will get you an answer quicker. But it does clutter this forum with unanswered posts.

https://forum.unity.com/threads/save-ideas-how-to-understand.537553/
https://forum.unity.com/threads/how-to-unity2d-save-position-and-load-position.538088/